updating oE has

has

include map.e 
namespace map 
public function has(map the_map_p, object key) 

checks whether map has a given key.

Parameters:
  1. the_map_p : the map to inspect
  2. the_key_p : an object to be looked up
Returns:

An integer, 0 if not present, 1 if present.

Example 1:
map the_map_p 
the_map_p = new() 
put(the_map_p, "name", "John") 
? has(the_map_p, "name") -- 1 
? has(the_map_p, "age")  -- 0 
See Also:

get

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu